# -*-coding:utf-8 -*-

"""
# File       : urls.py
# Time       ：2022/5/10 下午11:49
# Author     ：puppet
# version    ：python 3.8.1
# Description：
"""
from django.urls import path
from . import views
from rest_framework_jwt.views import obtain_jwt_token


urlpatterns = [
    path('register', views.register, name='register'),
    path('login', views.login, name='login'),
    path('logout', views.logout, name='logout'),
    path('tokenTest', views.tokenTest, name='tokenTest'),
    path('getuserinfo', views.getUserInfo, name='getuserinfo'),

    path('addarticle', views.addArticle, name='addArticle'),
    path('deletearticle', views.deleteArticle, name='deleteArticle'),
    path('getarticle', views.getArticle, name='getArticle'),
    path('getArticleByArticleID', views.getArticleByArticleID, name='getArticleByArticleID'),
    path('getArticleByUserid', views.getArticleByUserid, name='getArticleByUserid'),

    path('addReplybyArticleID', views.addReplybyArticleID, name='addReplybyArticleID'),
    path('showReply', views.showReply, name='showReply'),

    path('addToDatabasefromList', views.addToDatabasefromList, name='addToDatabasefromList'),
    path('getZhihuArticle', views.getZhihuArticle, name='getZhihuArticle'),

    path('addBiliHotVideo', views.addBiliHotVideo, name='addBiliHotVideo'),
    path('getBiliHotVideo', views.getBiliHotVideo, name='getBiliHotVideo'),
    path('addBaiduHot', views.addBaiduHot, name='addBaiduHot'),
    path('getBaiduHot', views.getBaiduHot, name='getBaiduHot'),
    path('addWeiboHot', views.addWeiboHot, name='addWeiboHot'),
    path('getWeiboHot', views.getWeiboHot, name='getWeiboHot'),
    path('addDouyinHot', views.addDouyinHot, name='addDouyinHot'),
    path('getDouyinHot', views.getDouyinHot, name='getDouyinHot'),
    path('addDoubanData', views.addDoubanData, name='addDoubanData'),
    path('getDoubanHot', views.getDoubanHot, name='getDoubanHot'),
    path('addweixinHot', views.addweixinHot, name='addweixinHot'),
    path('getWeixinData', views.getWeixinData, name='getWeixinData'),

    path('testAPI', views.testAPI, name='testAPI'),

    # path('getuserinfoToken', views.getUserInfoToken.as_view(), name='getuserinfoToken'),

    path('getSentanceEveryday', views.getSentanceEveryday, name='getSentanceEveryday'),



]

